<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" href="../../favicon.ico">
<title>Lista de Cadastros</title>
<!-- Bootstrap core CSS -->		
    <link href="css/bootstrap.min.css" rel="stylesheet">
</head>
<body>

<div class="row">
<div class="col-md-2"></div>
<div class="col-md-4"></div>
</div>
<!-- <div class="container"> -->
<div class="col-md-9"></div>
      <div class="header">
        <ul class="nav nav-pills pull-right">
        <li ><a href="index.jsp">Home</a></li>
        <li class="active"><a href="user.jsp">Novo Cadastro</a></li>
          <li><a href="http://cdigtcwww01:8080/Intranet/ConsultaRamaisJsf.jsf;jsessionid=B821DD722E1A78C89C58EE4E3F0C6FEB">Consultar Ramais</a></li>
         <!--<li><a href="#">Contact</a></li>-->
        </ul>
        <h2 class="text-muted">Cadastro do Consulta Ramais</h2>
      </div>
<br>
     <div class="jumbotron">
        <h2>Clique na Opção Desejada:</h2>
     <br>
     

    <table class="table table-hover" border="0" width="20%">
        <thead>
            <tr class="success">
                <th>Matrícula</th>
                <th>Empresa</th>
                <th>Cargo</th>
                <th>Função</th>
                <th>Lotação</th>
                <th>Nome</th>
                <th>Ramal</th>
                <th>Unidade</th>
                <th>Prefixo</th>
                <th colspan=2>Ação</th>
            </tr>
        </thead>
      
            <c:forEach items="${users}" var="user">
                <tr class="success">
                    <td><c:out value="${user.matricula}" /></td>
                    <td><c:out value="${user.empresa}" /></td>
                    <td><c:out value="${user.cargo}" /></td>
                    <td><c:out value="${user.funcao}" /></td>
                    <td><c:out value="${user.lotacao}" /></td>
                    <td><c:out value="${user.nome}" /></td>
                    <td><c:out value="${user.ramal}" /></td>
                    <td><c:out value="${user.unidade}" /></td>
                    <td><c:out value="${user.prefixo}" /></td>
                    <td><a href="UserController?action=edit&userId=<c:out value="${user.matricula}"/>">Update</a></td>
                    <td><a href="UserController?action=delete&userId=<c:out value="${user.matricula}"/>">Delete</a></td>
                </tr>
            </c:forEach>
    </table>
     </div>
     <div class="footer">
        <p>&copy; Getec 2014</p>
      </div>
     </div> <!-- /container -->
     
     
     
    
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
</body>
</html>